package cn.lbf.stuniversity.equipmentbasic.dao;

import cn.lbf.stuniversity.equipmentbasic.entity.EquipmentBasic;
import org.apache.ibatis.annotations.Mapper;
import cn.lbf.stuniversity.equipmentbasic.form.*;
import java.util.List;
import java.util.Map;

@Mapper
public interface EquipmentBasicDao {
    public List<EquipmentBasic> selectAll();

    // 根据 ID 查询设备基础信息
    public EquipmentBasic selectById(String equipmentBasicId);

    // 根据条件查询设备基础信息的数量
    public int selectEquipBasicCountByIdAndName(Map<String,Object> map);

    // 分页查询设备基础信息
    public List<EquipmentBasic> selectEquipmentByIdAndName(EquipmentBasicForm form);

    // 查询设备基础信息的总数
    public long queryCount(EquipmentBasicForm form);

    // 添加新的设备基础信息
    public int addNew(EquipmentBasicAddForm form);

    // 根据设备基础 ID 更新设备基础信息
    public int updateByEquipmentBasicId(EquipmentBasicDetailForm form);

    // 逻辑删除设备基础信息
    public int deleteByUpdateId(String equipmentBasicId);

}
